<?php 
/*
Plugin Name: Hatforrent Plugin
Plugin URI: http://www.hatforrent.com
Description: Run services to get content from hatforrent
Author: HoanBN
Version: 1.0
Author URI: http://www.hatforrent.com
*/  
session_start();
global $hfr_db_version;
$plugin_version = '1.0';
$hfr_db_version = '0.1.0';

define("HFR_SERVER", "http://beta.hatforrent.com");
define("HFR_PATH", plugin_dir_url( __FILE__ ));

/******************************
* includes
******************************/

include('includes/functions.php');

if(isset($_GET['act']) && $_GET['act'] == 'submit_data') {
	if(isset($_GET['holder']) && $_GET['holder'] == 'hfr_sources')
		include('includes/admin/source_submit.php');
} 

include ('includes/admin/source_ajax.php');
include('includes/admin-page.php');

function hfr_on_install() {
	include ('includes/install/install.sql.php');
}

register_activation_hook(__FILE__, 'hfr_on_install');

function hfr_on_uninstall() {
	include ('includes/install/uninstall.sql.php');
}

register_uninstall_hook(__FILE__, 'hfr_on_uninstall');